#ifndef __USART_H
#define __USART_H
#include "sys.h" 
#include "stdio.h"

#define USART_REC_LEN  			200

#define None        0
#define Add         1

#define YDCOM      		USART2
#define _518PCOM    	USART3
typedef struct  
{
	u8  USART_RX_BUF[USART_REC_LEN]; 
	u8  USART_RX_STA;    
	u16 USART_RX_Count;
}USART_STRUCT;

extern USART_STRUCT USART3_S;

void Uart_Init(void);
void USART_SendByte(USART_TypeDef* USARTx,u8 data);
void SendByteArray(USART_TypeDef* USARTx,const char *str,u8 size,u8 tail);
void SendMessage(USART_TypeDef* USARTx,const char *str,u8 tail);

#endif


